home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d3
/
allmac21.arc
/
DATEF10.ARC
/
DATEF10.QM
< prev
next >
Wrap
Text File
|
1990-08-27
|
4KB
|
87 lines
* QEdit Macros Save File "MosDayHourMin.Ext", v1.0b
* DATEF10.QM
*
* DATEF10 QEdit macros save the current file with the name either
* "Mos_Day_Hour_Min.Ext" or "CurrentFileName.Mos_Day". For example,
* Alt_0 saves this file as 08191025.inf and Alt_9 saves it as
* e:\up\datef.819 when date and time are Sun 08-19-1990 10:25:00.
* These may be useful in retrieving previous files which would have
* been erased. Alt_9 added in v1.0b.
* Thanks to Jim Wright for the neat idea how to condense date and time
* with his macro in QE-MEM.ZIP. Like many other macro ideas from others,
* they often seem so simple once we see and understand them that we say
* "why didn't I think of that" - but I didn't !
*┌─────────────────────────────────────────────────┐
*│ Alt_0 saves file as "Mos_Day_Hour_Min.Ext" │
*└─────────────────────────────────────────────────┘
@0 macrobegin
***************************************** TOGGLE INSERT ON*************
insertline * insert test line
"a" cursorleft "a" * insert "aa"
endline * if not at endline-insert is on
jtrue END: * if at endline -insert is off
toggleinsert * toggle ON if off
END: *
delline * delete test line
***************************************** CONDENSE DATE & TIME *******
unmarkblock * begin no marked block
insertline begline * insert line
insertdate inserttime * get date & time to condense
delltword delltword * delete seconds
backspace * delete :
cursorleft cursorleft * keep minutes
backspace * delete :
cursorleft cursorleft * keep hour
delltword delltword * delete spaces and year
backspace * delete -
cursorleft cursorleft * keep day
backspace * delete -
cursorleft cursorleft * keep month
delltword delltword * delete spaces & day name
endline * go to end of condensed number
currentfilename * get currentfilename
find "." return "b" return * move to begin of extension
cursorleft markcolumn * move off dot and mark it
find ":" return "b" return * move to :
cursorleft deleteblock * del all but .ext of filename
cut * get number.ext to scrap
writeblock paste return * save number.ext
*
* 63 bytes Sat 08-18-1990 09:47:15
*┌─────────────────────────────────────────────────────────────────┐
*│Alt_9 saves the file with name "CurrentFileName.Mos_Day". │
*└─────────────────────────────────────────────────────────────────┘
* Remember Jan and Nov are "1xx" and Feb and Dec are "2xx" and
* ToggleInsert must be set ON.
*
@9 macrobegin
unmarkblock * begin no marked block
insertline begline * insert line
insertdate * get date & time to condense
delltword delltword * delete spaces and year
backspace * delete -
cursorleft cursorleft * keep day
backspace * delete -
cursorleft * keep month
delltword delltword * delete spaces & day name
begline *
currentfilename * get currentfilename
delltword * delete extension
cut * get filename.num to scrap
writeblock paste return * save filename.num
*
* 24 bytes Sun 08-19-1990 10:45:08
* Version History
*
* 1.0a - changed documentation
* 1.0b - added Alt_9
* Tom Hogshead Tue 08-21-1990 00:38:41